import styles from './index.module.less'

interface Props {
    title: string
    score: number
    onViewDetail: () => void
}

export const MultiChoiceQuestion = (props: Props) => {
    return (
        <div className={styles.box}>
            <div className={styles.leftArea}>
                <div className={styles.title}>{props.title}</div>
                <div className={styles.score}>{`平均分：${Number(props.score).toFixed(2)}分`}</div>
            </div>
            <div className={styles.viewDetail} onClick={props.onViewDetail} />
        </div>
    )
}
